pp108 : GetAttachments for a Case Instance

GetAttachments for a Case Instance


This soap method is used to fetch all the attachments associated with a given Case instance and the activity. The GetAttachments is a part of the BPM method set with the namespace 'http://schemas.cordys.com/bpm/attachments/1.0'.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <GetAttachments xmlns="http://schemas.cordys.com/bpm/attachments/1.0">
            <instanceid type="CASE|BPM">4acd1f1e-7e2c-498a-a74b-f2fa503a5e67</instanceid>
        </GetAttachments>
    </SOAP:Body>
</SOAP:Envelope>
Request Parameters

Parameter

Description

Mandatory

Accepted Input Values

instanceid

Refers to the unique identifier of the Case instance that you want to retrieve

Yes

SOAP Response before the attachments are uploaded

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <GetAttachmentsResponse xmlns="http://schemas.cordys.com/bpm/attachments/1.0">
            <attachment acl="update" mime="doc,pdf" multiplicity="1"
                name="PoliceReport" scope="instance"/>
        </GetAttachmentsResponse>
    </SOAP:Body>
</SOAP:Envelope>

SOAP Response when attachments are already uploaded

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <GetAttachmentsResponse xmlns="http://schemas.cordys.com/bpm/attachments/1.0">
            <attachment acl="update" mime="doc,pdf" multiplicity="1"
                name="PoliceReport" scope="instance">
                <instance desc="description"
                    modifiedat="12-12-2008 10:15" modifiedby="skandasa"
                    name="PoliceReport.doc" size="440">
           cordys/casemanagement/completepath/modelname/
           4acd1f1e-7e2c-498a-a74b-f2fa503a5e67/PoliceReport/PoliceReport.doc
        </instance>
            </attachment>
        </GetAttachmentsResponse>
    </SOAP:Body>
</SOAP:Envelope>

Response Parameters

Parameter Description
attachment/instance Contains the document URL of the attachment